package com.groupfifteen.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.groupfifteen.dao.SysDictDao;
import com.groupfifteen.entity.SysDictEntity;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("sysDictService")
public class SysDictServiceImpl extends ServiceImpl<SysDictDao, SysDictEntity>
        implements SysDictService{

    @Override
    public IPage<SysDictEntity> queryPage(Map<String, Object> params) {
        return null;
    }

    @Override
    public IPage<SysDictEntity> Query(SysDictEntity sysDictEntity, int pageNo, int pageSize) {
        return null;
    }

    @Override
    public Integer AddDict(SysDictEntity sysDictEntity) {
        return baseMapper.insert(sysDictEntity);
    }

    @Override
    public Integer DeleteDict(Integer dict_code) {
        return baseMapper.deleteById(dict_code);
    }

    @Override
    public SysDictEntity GetDict(Integer dict_code) {
        return baseMapper.selectById(dict_code);
    }

    @Override
    public Integer UpdateDict(SysDictEntity sysDictEntity) {
        return baseMapper.updateById(sysDictEntity);
    }
}
